import {
	request
} from './index.js'
// 首页bannar
export function getbanner(data) {
	return request.get('/index/banner', data)
}

// 登录 
export function wxLogin(data) {
	return request.post('/login/mnp', data)
}
// bannar  
export function slides(data) {
	return request.get('/index/slides', data)
}

// 获取个人信息 
export function userInfo(data) {
	return request.get('/user/info', data)
}

// 获取城市
export function cityList(data) {
	return request.get('/city/lists', data)
}

// 
export function address(data) {
	return request.post('/user/address', data)
}

// 酒店星级
export function hotelstar(data) {
	return request.get('/hotel/star', data)
}

// 房型 
export function hoteltype(data) {
	return request.get('/hotel/type', data)
}

// 评分  
export function hotelscore(data) {
	return request.get('/hotel/score', data)
}
// 免费服务 hotel/free
export function hotelfree(data) {
	return request.get('/hotel/free', data)
}
// 配套 hotel/support
export function hotelsupport(data) {
	return request.get('/hotel/support', data)
}

// 收费服务 hotel/charge
export function hotelcharge(data) {
	return request.get('/hotel/charge', data)
}

// 添加订单
export function orderadd(data) {
	return request.post('/hotel.order/add', data)
}

// 获取信息广场 
export function articleList(data) {
	return request.get('/bbs.article/square', data)
}

export function infoDetail(data) {
	return request.get('/bbs.article/info', data)
}

// 点赞 
export function infolike(data) {
	return request.post('/bbs.article/like', data)
}

// p评论 列表
export function commentList(data) {
	return request.get('/bbs.comment/lists', data)
}

// 评论 
export function addcomment(data) {
	return request.post('/bbs.comment/add', data)
}
// 评论点赞
export function addcommentlink(data) {
	return request.post('/bbs.comment/like', data)
}
// 发布 
export function addarticle(data) {
	return request.post('/bbs.article/add', data)
}
// 获取订单列表 hotel.order/lists
export function hotelList(data) {
	return request.get('/hotel.order/lists', data)
}
// 取消订单 
export function hotelcancel(data) {
	return request.post('/hotel.order/cancel', data)
}

export function hotelrewait(data) {
	return request.post('/hotel.order/rewait', data)
}
// 发布订单 hotel.order/publish
export function hotelpublish(data) {
	return request.post('/hotel.order/publish', data)
}
// 立即支付 hotel.order/pay
export function hotelpay(data) {
	return request.post('/hotel.order/pay', data)
}

// 订单详情 
export function hoteldetail(data) {
	return request.get('/hotel.order/detail', data)
}

// 获取富文本 index/content
export function indexcontent(data) {
	return request.get('/index/content', data)
}
// 获取首页信息 
export function indexbbs(data) {
	return request.get('/index/bbs', data)
}

// 答题疑问 
export function problem(data) {
	return request.get('/bbs.problem/lists', data)
}

// 优惠券
export function couponList(data) {
	return request.get('/user/coupon', data)
}

// 推荐 
export function getrecommend(data) {
	return request.get('/user/recommend', data)
}
// 获取会员信息 
export function levellists(data) {
	return request.get('/user.level/lists', data)
}

// 设置 
export function setNightSpecial(data) {
	return request.post('/user/setNightSpecial', data)
}

// 详情 ?
export function problemdetail(data) {
	return request.get('/bbs.problem/detail', data)
}

// 获取金豆
export function userbean(data) {
	return request.get('/user/bean', data)
}

// 保存需求 
export function ordersave(data) {
	return request.post('/hotel.order/save', data)
}
// 获取商家信息 
export function partnerinfo(data) {
	return request.get('/hotel.partner/info', data)
}
// 绑定银行卡  
export function partnerbank(data) {
	return request.post('/partner.hotel/bank', data)
}
// 提现 
export function partnercash(data) {
	return request.post('/partner.hotel/cash', data)
}
// 明细 
export function moneyLog(data) {
	return request.get('/hotel.partner/moneyLog', data)
}

export function partnermoneyLog(data) {
	return request.get('/partner.hotel/moneyLog', data)
}
// 添加房间 
export function hoteladd(data) {
	return request.post('/partner.hotel/add', data)
}

// 酒店列表 
export function hotellists(data) {
	return request.get('/partner.hotel/lists', data)
}
// 房型 
export function partnertype(data) {
	return request.get('/partner.house/type', data)
}

// 房间标签
export function typeLabel(data) {
	return request.get('/hotel/typeLabel', data)
}
// 添加 
export function houseadd(data) {
	return request.post('/partner.house/add', data)
}
// 切换酒店 
export function hotelswitch(data) {
	return request.post('/partner.hotel/switch', data)
}
// 帮助支持 
export function supportlists(data) {
	return request.post('/help_support/lists', data)
}
// 详情  
export function supportdetail(data) {
	return request.get('/help_support/detail', data)
}
// 获取列表 
export function houselists(data) {
	return request.get('/partner.house/lists', data)
}
// 上下架 
export function setStatus(data) {
	return request.post('/partner.house/setStatus', data)
}
// t调整库存 
export function setStock(data) {
	return request.post('/partner.house/setStock', data)
}
// 我的收藏
export function usercollect(data) {
	return request.get('/user/collect', data)
}
// 
export function userarticle(data) {
	return request.get('/user/article', data)
}
// 轮询 
export function ordercheck(data) {
	return request.get('/hotel.order/check', data)
}

// 
export function orderpop(data) {
	return request.post('/hotel.order/pop', data)
}

// 详情 
export function hotelinfo(data) {
	return request.get('/hotel.order/partInfo', data)
}


// 
export function hotelpays(data) {
	return request.post('/hotel.order/pay', data)
}

// 支付 
export function pay(data) {
	return request.post('/hotel.order/prepare', data)
}

// 房型 
export function houseinfo(data) {
	return request.get('/hotel.order/houseinfo', data)
}

// 拼搏国家 


export function commentLists(data) {
	return request.get('/hotel.order/commentList', data)
}
// 售后 

export function aftersale(data) {
	return request.post('/hotel.order/aftersale', data)
}
// 取消原因 
export function reason(data) {
	return request.get('/index/reason', data)
}
// 售后 
export function schedule(data) {
	return request.get('/hotel.order/schedule', data)
}
// 评价 
export function commentorder(data) {
	return request.post('/hotel.order/comment', data)
}
// 取消订单
export function commentorderdel(data) {
	return request.post('/hotel.order/del', data)
}

// 订单列表
export function halllists(data) {
	return request.get('/partner.hall/lists', data)
}

// 商家 
export function hallhouse(data) {
	return request.get('/partner.hall/house', data)
}

// 优惠条件 
export function discounthouse(data) {
	return request.get('/hotel/discount', data)
}

// 提交订单 
export function hallrob(data) {
	return request.post('/partner.hall/rob', data)
}

// 商家订单 
export function orderlists(data) {
	return request.get('/partner.order/lists', data)
}
// 核销 
export function verify(data) {
	return request.post('/partner.order/verify', data)
}
// 订单详情
export function orderdetail(data) {
	return request.get('/partner.order/detail', data)
}
// 取消订单 
export function ordercancel(data) {
	return request.post('/partner.order/cancel', data)
}

// 售后详情、 
export function orderaftersale(data) {
	return request.get('/partner.order/aftersale', data)
}

// 售后
export function orderrefund(data) {
	return request.post('/partner.order/refund', data)
}

// 订单 是否刷新
export function orderrefresh(data) {
	return request.post('/hotel.order/refresh', data)
}

// 酒店详情 
export function partnerhoteldetail(data) {
	return request.get('/partner.hotel/detail', data)
}
// 修改酒店 
export function partnerhoteledit(data) {
	return request.post('/partner.hotel/edit', data)
}

// 条件 partner.hotel/typeList
export function hoteltypeList(data) {
	return request.get('/partner.hotel/typeList', data)
}

// 条件 
export function hotelhouseCondition(data) {
	return request.get('/partner.hotel/houseCondition', data)
}

// 价格
export function hotelprice(data) {
	return request.get('/hotel/price', data)
}

// 设置价格 
export function houseConditionSave(data) {
	return request.post('/partner.hotel/houseConditionSave', data)
}

export function typeConditionSave(data) {
	return request.post('/partner.hotel/typeConditionSave', data)
}

// 房型详情 
export function houseCondition(data) {
	return request.get('/partner.hotel/houseCondition', data)
}

export function hotelconfig(data) {
	return request.get('/hotel/config', data)
}
 
// 订单详情 

export function hotelorderdetail(data) {
	return request.get('/hotel.order/detail', data)
}

// 修改个人信息
export function setuserinfo(data) {
	return request.post('/user/info', data)
}

export function authmobile(data) {
	return request.post('/auth/mobile', data)
}

// 添加库存 
export function addStocksa(data) {
	return request.post('/partner.house/addStock', data)
}
// 库存列表 
export function getStocksa(data) {
	return request.get('/partner.house/stock', data)
}

// 编辑 
export function editStock(data) {
	return request.post('/partner.house/editStock', data)
}

// 获取申请记录 
export function partnerapply(data) {
	return request.post('/hotel.partner/apply', data)
}



// 文件上传 
export function uploadFile(data) {
	console.log(data);
	return request.upload('/common/upload', data)
}